import axios from "axios";
axios.defaults.baseURL = "http://www.520gongfu.com:9527/api/category"

export const getSort = (callback) => {
  axios.get('/data').then((response)=>{
    callback && callback(response.data)
  })
  .catch((error)=>{
    console.log(error);
  })
}